<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>用户首页</title>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <script type="text/javascript" src="/static/common/polyfill.min.js"></script><!--适配IE-->
    <link rel="stylesheet" href="/static/common/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/common/global.css"/>
    <link rel="stylesheet" href="/static/common/font-awesome/css/font-awesome.min.css"/>
</head>
<body>
<div class="layui-layout layui-layout-admin" style="border-bottom: solid 5px #1aa094;">
    <!--头-->
    <div class="layui-header header header-demo">
        <div class="layui-main">
            <div class="admin-login-box">
                <a class="logo" href="#">
                    <span>CoursePlay</span>
                </a>
                <div class="admin-side-toggle">
                    <i class="fa fa-bars" aria-hidden="true"></i>
                </div>
                <div class="admin-side-full">
                    <i class="fa fa-life-bouy" aria-hidden="true"></i>
                </div>
            </div>

            <ul class="layui-nav admin-header-item">
                <li class="layui-nav-item">
                    <a href="/logout" class="admin-header-user">
                        <span>注销</span>
                    </a>
                </li>
            </ul>
        </div>
    </div>

    <!--菜单栏-->
    <div class="layui-side layui-bg-black" id="admin-side">
        <div class="layui-side-scroll" id="admin-navbar-side" lay-filter="side"></div>
    </div>

    <div class="layui-body" id="admin-body" style="bottom: 0;">
        <div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab">
            <!--选择tab-->
            <ul class="layui-tab-title">
                <li class="layui-this">
                    <i class="fa fa-dashboard" aria-hidden="true"></i>
                    <cite>控制面板</cite>
                </li>
            </ul>
            <!--菜单页面-->
            <div class="layui-tab-content" style="min-height: 150px; padding: 5px 0 0 0;">
                <div class="layui-tab-item layui-show">
                    <iframe src="/system/welcome"></iframe>
                </div>
            </div>
        </div>
    </div>

    <!--底-->
    <div class="layui-footer footer footer-demo" id="admin-footer">
        <div class="layui-main">
            <p>2018 &copy; CoursePlay</p>
        </div>
    </div>
    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>
</div>

<script type="text/javascript" src="/static/common/jquery-3.2.1.js"></script>
<script>
    //console.log(localStorage.getItem('token'));
    //$.ajaxSetup({
    //    url:"/getCurrentUser",
    //    aysnc:false,
    //    type:"POST",
    //    contentType:"application/json",
    //    headers:{
    //        "token":localStorage.getItem('token')
    //    },
    //    error:function () {
    //        alert("发送请求失败");
    //    },
    //    success:function (data) {
    //        console.log(data);
    //    }
    //});
</script>
<!--<script type="text/javascript" src="/static/js/common.js"></script>-->
<script type="text/javascript" src="/static/common/layui/layui.js"></script>
<script type="text/javascript" src="/static/data/nav.js"></script>
<script type="text/javascript" src="/static/js/index.js"></script>
</body>
</html>